package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试剂组
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "试剂组")
@TableName("base_reagent_team")
public class ReagentTeam extends DataEntity {

    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "科室ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = ""
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "试剂组名称",
            length = "50",
            not_null = true,
            default_value = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "试剂组编码",
            length = "20",
            not_null = true,
            default_value = ""
    )
    private String code;

    @EntityFieldAnnotation(
            text = "试剂组地址",
            length = "250",
            not_null = false,
            default_value = ""
    )
    private String address;

    // 科室名称
    @TableField(exist = false)
    private String deptName;

}
